//  
//  BGODataType.m
//  Bango iOS API
//
//  Created by William Shakour on September 8, 2011.
//  Copyrights © 2011 Bango - http://www.bango.net/ - All rights reserved.
//

#import "BGODataType.h"
@implementation BGODataType
+ (BGODataType *)dataType {
  return [[[BGODataType alloc] init] autorelease];
}
@dynamic id;
- (int) id {
  return [_id intValue];
}
- (void) setId:(int)val_ue {
  if (_id != nil) {
    [_id release];
  }
  _id = [[NSNumber numberWithInt:val_ue] retain];
  return;
}
- (NSMutableDictionary *) toJson {
  NSMutableDictionary * jsonObject = [super toJson];
//  if (_id != nil) {
//    [jsonObject setObject:_id forKey:@"id"];
//  }
  return jsonObject;
}
- (void)fromJson:(NSDictionary *)jsonObject {
  [super fromJson:jsonObject];
  if ([jsonObject objectForKey:@"id"] != nil) {
    _id = [[jsonObject objectForKey:@"id"] retain];
  }
}

- (void) dealloc {
  [_id release];
  [super dealloc];
  return;
}
@end